package com.online.demo.service.impl;

import com.online.demo.entity.TContent;
import com.online.demo.mapper.TContentMapper;
import com.online.demo.service.ITContentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sda1
 * @since 2020-11-30
 */
@Service
public class TContentServiceImpl extends ServiceImpl<TContentMapper, TContent> implements ITContentService {

    @Resource
    private TContentMapper tContentMapper;

    @Override
    public int addContent(TContent tContent) {
        tContentMapper.addContent(tContent);
        return 0;
    }
}
